from django.contrib import admin
from django.contrib.flatpages.models import FlatPage
from django.contrib.flatpages.admin import FlatPageAdmin
from django.contrib.redirects.models import Redirect
from django.contrib.redirects.admin import RedirectAdmin
from tagging.models import Tag, TaggedItem
from basic.blog.models import Category as BlogCategory, Post
from basic.blog.admin import CategoryAdmin as BlogCategoryAdmin, PostAdmin
from portfolio.models import Page, Client, Category, Task, Award, Project, Picture
from portfolio.admin import PageAdmin, PageForm, ClientAdmin, CategoryAdmin, TaskAdmin, AwardAdmin, ProjectAdmin, ProjectForm, ProjectInline, PictureAdmin, PictureInline
from testimonials.models import Person, Quote
from testimonials.admin import PersonAdmin, QuoteAdmin
from wishlist.models import Item
from wishlist.admin import ItemAdmin

class AdminSite(admin.AdminSite):
    pass

site = AdminSite()

site.register(FlatPage, FlatPageAdmin)
site.register(Redirect, RedirectAdmin)
site.register(BlogCategory, BlogCategoryAdmin)
site.register(Post, PostAdmin)
site.register(Tag)
site.register(TaggedItem)
site.register(Page, PageAdmin,
    inlines = [ProjectInline],
    form = PageForm,
)
site.register(Client, ClientAdmin)
site.register(Category, CategoryAdmin)
site.register(Award, AwardAdmin)
site.register(Task, TaskAdmin)
site.register(Project, ProjectAdmin,
    inlines = [PictureInline],
    form = ProjectForm,
)
site.register(Picture, PictureAdmin)
site.register(Item, ItemAdmin)
site.register(Person, PersonAdmin)
site.register(Quote, QuoteAdmin)
